package cn.kgc.service.impl;

import cn.kgc.dao.Lxdetail2Dao;
import cn.kgc.dao.LxdetailDao;
import cn.kgc.pojo.Lxdetail;
import cn.kgc.pojo.Lxdetail2;
import cn.kgc.service.Lxdetail2Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: 木子
 * @date: 2022/2/17
 * @description:
 */
@Service
public class Lxdetail2ServiceImpl implements Lxdetail2Service {

    @Resource
    private Lxdetail2Dao ld2;
    @Resource
    private LxdetailDao ld;

    @Override
    public List<Lxdetail2> selById2(int id) {
        List<Lxdetail2> s = ld2.selById2(id);
        for (Lxdetail2 l : s) {
            l.setLid(id);
        }
        return s;
    }

    @Override
    public List<Lxdetail2> query(int fid, int lid) {
        return ld2.query(fid,lid);
    }

    @Override
    public int updateById(Lxdetail2 lx) {
        return ld2.updateById(lx);
    }

    @Override
    public int update2ById(Lxdetail ll) {
        return ld.update2ById(ll);
    }

    @Override
    public int totalById(Lxdetail lid) {
        return ld.totalById(lid);
    }

}
